package cc.zy.base.hr.entity;

import cc.zy.base.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import java.util.Date;

/**
 * @author TK
 * @time 2022/03/09 10:08:22
 */
@Data
@TableName("t_hr_examine_simple")
@Excel("考试表")
public class ExamineSimple {

    /**
     * 考试id
     */
    @TableId(value = "ID",type = IdType.AUTO)
    @ExcelField(value = "ID")
    private Integer id;

    /**
     *试卷名称
     */
    @TableField("TITLE")
    @ExcelField(value = "试卷名称")
    private String title;

    /**
     *试卷总分
     */
    @TableField("TOTAL")
    @ExcelField(value = "试卷总分")
    private Integer total;

    /**
     *考试时间
     */
    @TableField("MINUTES")
    @ExcelField(value = "考试时间（分钟）")
    private Integer minutes;

    /**
     *是否发布
     */
    @TableField("PUBLISH")
    private Integer publish;

    /**
     * 创建用户id
     */
    @TableField("CREATE_STAFF_ID")
    private Long createStaffId;

    /**
     * 创建时间
     */
    @TableField("CREATE_DATE")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "CTT")
    private Date createDate;

    /**
     * 修改人id
     */
    @TableField("LAST_MODIFY_STAFF_ID")
    private Long lastModifyStaffId;

    /**
     * 修改时间
     */
    @TableField("LAST_MODIFY_DATE")
    @ExcelField(value = "最后修改日期", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "CTT")
    private Date lastModifyDate;

    /**
     * 考试登录密码
     */
    @TableField("RAND_PWD")
    @ExcelField(value = "考试登录密码")
    private Integer randPwd;

    /**
     * 添加用户名称
     */
    @ExcelField(value = "创建人")
    @TableField(exist = false)
    private String createStaffName;

    /**
     * 更新人名称
     */
    @ExcelField(value = "修改人")
    @TableField(exist = false)
    private String updateStaffName;

    /**
     * 是否发布
     */
    @ExcelField(value = "发布状态")
    @TableField(exist = false)
    private String detail;


}
